package com.shixi.shixitraining.shixitraining.ui.tabmine.adapter;

import android.content.Context;

import com.bumptech.glide.RequestManager;
import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.ui.tabmine.entity.TestApplyBean;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseAdapter;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseRecycleHolder;

import java.util.List;

/**
 * Created by shenyan on 2018/7/17.
 */

public class MyApplyAdapter extends BaseAdapter<TestApplyBean> {

private RequestManager manager;
    public MyApplyAdapter(Context context, List<TestApplyBean> data, RequestManager manager) {
        super(context, data);
        this.manager=manager;
    }

    @Override
    public void convert(BaseRecycleHolder holder, TestApplyBean item, int position) {
        holder.setText(R.id.title_tv,item.getTitle());
        holder.setText(R.id.address_tv,item.getAddress());
        holder.setText(R.id.offical_tv,item.getOffical());
        holder.setText(R.id.time_tv,item.getTime());

    }

    @Override
    protected int getLayoutId(int viewType) {
        return R.layout.adapter_mine_apply;
    }
}
